<template>
  <div class="search">
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    data() {
      return {
        hotKey: []
      }
    },
    created() {
    },
    methods: {
    },
    watch: {
      query(newQuery) {
        if (!newQuery) {
          setTimeout(() => {
            this.$refs.shortcut.refresh()
          }, 20)
        }
      }
    },
    components: {
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/assets/css/mixin.scss";
@import 'src/assets/css/variables.scss';

  .search{
    .search-box-wrapper{
      margin: 20px;
    }
    .shortcut-wrapper{
      position: fixed;
      top: 178px;
      bottom: 0;
      width: 100%;
      .shortcut{
        height: 100%;
        overflow: hidden;
        .hot-key{
          margin: 0 20px 20px 20px;
          .title{
            margin-bottom: 20px;
            font-size: $font-size-medium;
            color: $color-text-l;
          }
          .item{
            display: inline-block;
            padding: 5px 10px;
            margin: 0 20px 10px 0;
            border-radius: 6px;
            background: $color-highlight-background;
            font-size: $font-size-medium;
            color: $color-text-d;
          }
        }
        .search-history{
          position: relative;
          margin: 0 20px;
          .title{
            display: flex;
            align-items: center;
            height: 40px;
            font-size: $font-size-medium;
            color: $color-text-l;
            .text{
              flex: 1;
            }
            .clear{
              @include extend-click;
              .icon-clear{
                font-size: $font-size-medium;
                color: $color-text-d;
              }
            }
          }
        }
      }
    .search-result{
      position: fixed;
      width: 100%;
      top: 178px;
      bottom: 0;
    }
    }
  }
</style>
